package io.xxx.mario.config;

import org.springframework.context.annotation.Configuration;

@Configuration
public class JobConfig {

//    @Bean
//    public JobDetail onceTaskPushJobDetail() {
//        return JobBuilder.newJob(OnceTaskPushJob.class)
//                .withIdentity("onceTaskPushJob", "task")
//                .withDescription("消息推送任务")
//                .storeDurably()
//                .build();
//    }
//
//    @Bean
//    public Trigger onceTaskPushJobTrigger(JobDetail onceTaskPushJobDetail) {
//        return TriggerBuilder.newTrigger()
//                .withSchedule(SimpleScheduleBuilder.repeatSecondlyForever(3))
//                .forJob(onceTaskPushJobDetail)
//                .build();
//    }
//
//    @Bean
//    public JobDetail taskInitializationJobDetail() {
//        return JobBuilder.newJob(TaskInitializationJob.class)
//                .withDescription("任务初始化")
//                .storeDurably()
//                .build();
//    }
//
//    @Bean
//    public Trigger taskInitializationJobTrigger(JobDetail taskInitializationJobDetail) {
//        return TriggerBuilder.newTrigger()
//                .withSchedule(SimpleScheduleBuilder.repeatSecondlyForever(3))
//                .forJob(taskInitializationJobDetail)
//                .build();
//    }
}
